package inits

import (
	"context"
	mqtt "github.com/eclipse/paho.mqtt.golang"
	"github.com/elastic/go-elasticsearch/v7"
	"github.com/redis/go-redis/v9"
	"github.com/sashabaranov/go-openai"
	"go.mongodb.org/mongo-driver/mongo"
	"gorm.io/gorm"
	"hospital-srv/basic/config"
)

var (
	Config        config.Appconf
	DB            *gorm.DB
	Rdb           *redis.Client
	Ctx           = context.Background()
	Es            *elasticsearch.Client
	Db            *redis.Client
	DP            *openai.Client
	EmQx          mqtt.Client       //创建EmQx客户端
	Mongo         *mongo.Collection //mongodb数据存储表
	MongoDB       *mongo.Collection //MongoDB清理后的数据表
	MongoSum      *mongo.Collection //总结后的数据表
	MongoComments *mongo.Collection //一级评论
	MongoReply    *mongo.Collection //二级评论
)
